/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */


import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTextField;

/**
 *
 * @author Nathan
 */
public class Window extends JFrame{
    JFrame theGUI;
    JLabel timeLabel = new JLabel("Min Remaining");
    JLabel tmrLabel = new JLabel("Set Min");
    JTextField timeField = new JTextField("-");
    JTextField tmrField = new JTextField("15");
    JButton activate = new JButton("Activate");
    /**
     * Constructor. Constructs a Window. Gives it a grid layout.
     * @Returns Window
     */
    public Window(){
        JPanel dataPanel = new JPanel(new GridLayout(2,2,12,6));
        dataPanel.add(timeLabel);
        dataPanel.add(tmrLabel);
        dataPanel.add(timeField);
        dataPanel.add(tmrField);
        JPanel buttonPanel = new JPanel();
        buttonPanel.add(activate);
        Container container = getContentPane();
        container.add(dataPanel,BorderLayout.CENTER);
        container.add(buttonPanel,BorderLayout.SOUTH);
    }
}
